﻿
@model TCM.Subject

@{
    ViewBag.Title = "Edit";
}

<h2>Edit Subject<span class="FormTitle">@Html.DisplayFor(model => model.Name)</span></h2>

@using (Html.BeginForm())
{
    
    @Html.ValidationSummary(true)
<table style="width: 99.9%">
        <tr>
            <td class="IndexBack">
                @Html.ActionLink(" ", "Index")</td>
            <td style="text-align: right">
                </td>
        </tr>
    </table>

    <fieldset>
        <legend>Subject</legend>
        <ol>            
             @Html.HiddenFor(model => model.SubjectID)            
            <li class="editor-label">
                @Html.LabelFor(model => model.Name)

                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </li>

           
             <li class="editor-label">
                @Html.LabelFor(model => model.Code)

                @Html.EditorFor(model => model.Code)
                @Html.ValidationMessageFor(model => model.Code)
            </li>            

            <li class="editor-label">
                @Html.LabelFor(model => model.SubjectCateogryID)                
                @Html.DropDownList("SubjectCateogryID", String.Empty)
                @Html.ValidationMessageFor(model => model.SubjectCateogryID)
            </li>

          
            <li class="editor-label OneColumn">
                @Html.LabelFor(model => model.Description)

                @Html.TextAreaFor(model => model.Description)
                @Html.ValidationMessageFor(model => model.Description)
            </li>
                     
        </ol>
        <p>
                <input type="submit" value="Save" />
         </p>
    </fieldset>
}



<br />
 <footer class="noPrint">

          <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedBy)
       
            @Html.DisplayFor(model => model.CreatedBy)
        </li>               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedOn)
       
            @Html.DisplayFor(model => model.CreatedOn)
        </li>
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedBy)
      
            @Html.DisplayFor(model => model.ModifiedBy)
        </li>
               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedOn)
       
            @Html.DisplayFor(model => model.ModifiedOn)
        </li>     
         </footer>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

